package com.base.core.head.valid;

import java.util.Collection;

import com.gitee.magic.core.valid.ValidCheckCustom;

/**
 * @author start 
 */
public class CollectionNotEmptyValid implements ValidCheckCustom  {

	@Override
	public boolean check(Object value) {
		try {
			return ((Collection<?>)value).size()>0;
		}catch(Exception e) {
			return false;
		}
	}
	
}
